package com.achievo.know.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.dayatang.domain.BaseEntity;
import com.dayatang.domain.InstanceFactory;

@Entity
@Table(name="cbd_friend")
public class Friend extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2880069924102583935L;
	
	@Column(name="name",length=100)
	private String name;
	
	private static FriendRespository respository;
	
	public static FriendRespository getFriendRespository(){
		if(respository==null)
		{
			respository=InstanceFactory.getInstance(FriendRespository.class);
		}
		return respository;
	}
	
	public void save(){
		getFriendRespository().save(this);
	}
	

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public boolean equals(Object arg0) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}
	
	

}
